(Fsubstitute_command_keys): Fix counding bytes.
authorKenichi Handa <handa@m17n.org>
Tue, 2 Mar 2004 06:11:48 +0000 (06:11 +0000)
committerKenichi Handa <handa@m17n.org>
Tue, 2 Mar 2004 06:11:48 +0000 (06:11 +0000)
src/doc.c

index 0e22f6d105962c31b6bda7492ddc0ac551231855..930afc88e23f709089de91cd4cde6112d9bb7515 100644 (file)
--- a/src/doc.c
+++ b/src/doc.c
@@ -821,7 +821,7 @@ thus, \\=\\=\\=\\= puts \\=\\= into the output, and \\=\\=\\=\\[ puts \\=\\[ int
          start = strp;
          start_idx = start - SDATA (string);
 
-         while ((strp - SDATA (string) < SCHARS (string))
+         while ((strp - SDATA (string) < SBYTES (string))
                 && *strp != '}' && *strp != '>')
            strp++;